<script>
	/* #ifdef H5 */
	let VConsole = require('./vconsole.js');
	/* #endif */
	export default {
		globalData: {
			token: '',
			userId: '',
			mobile: '',
			extraData: {},
			bizType: '1',
			gouchedaiData: {
				// searchId: '9fdb9becbce44cfb9342c38458a4d5c9',
				// enterpiseName: '易鑫测试一',
				// sellName: '李苗苗'
			},
		},
		onLaunch: function(options) {
			// #ifdef MP-WEIXIN
			uni.getSystemInfo({
				success: e => {
					let StatusBar = e.statusBarHeight;
					let rect = uni.getMenuButtonBoundingClientRect();
					if (e.system.toLowerCase().indexOf('ios') > -1) {
						//IOS
						let CustomBar = rect.bottom + (rect.top - e.statusBarHeight) * 2;
						let HeaderBar = CustomBar - e.statusBarHeight;
						this.$options.globalData.HeaderBar = HeaderBar;
					} else {
						//安卓
						let HeaderBar = rect.height + (rect.top - e.statusBarHeight) * 2;
						let CustomBar = HeaderBar + e.statusBarHeight;
						this.$options.globalData.HeaderBar = HeaderBar;
					} 
					this.$options.globalData.StatusBar = e.statusBarHeight;
				}  
			});
			// #endif
			if(options.query) {
				// 购车贷跳转(payload)
				if(options.query.carId) {
					let queryData = options.query;
					this.globalData.gouchedaiData = {
						enterpiseName: decodeURI(queryData.enterpiseName),
						sellName: decodeURI(queryData.sellName),
						searchId: queryData.carId, // carId换成了查数据的id
					};
				}
			}
		},
		onShow: function(options) {
			console.log(options)
			console.log(decodeURI(options.query.enterpiseName))
			if(options.query) {
				// 购车贷跳转(payload)
				if(options.query.carId) {
					let queryData = options.query;
					this.globalData.gouchedaiData = {
						enterpiseName: decodeURI(queryData.enterpiseName),
						sellName: decodeURI(queryData.sellName),
						searchId: queryData.carId, // carId换成了查数据的id
					};
				}
			}
		},
		onHide: function() {
			
		},
		mounted() {
			// let vConsole = new VConsole();
			// console.log('开启调试');
		},
	}
</script>

<style>
	/*每个页面公共css */
	uni-page-head { display: none}
	button::after {
		border: none;
		background-color: none;
	}
	
	body {
		background: #eaeaea;
		  font-family: "Microsoft YaHei", "Helvetica Neue", Helvetica, Arial, "PingFang SC", "Hiragino Sans GB", "Heiti SC", "WenQuanYi Micro Hei", sans-serif;
	}
	.btnBox {
	  box-sizing: border-box;
	}
	.btn {
	  background: #369049;
	  background: -webkit-linear-gradient(left, #369049, #369049);
	  background: -o-linear-gradient(right, #369049, #369049);
	  background: -moz-linear-gradient(right, #369049, #369049);
	  background: linear-gradient(to right, #369049, #369049);
	  color: #ffffff;
	  width: 598rpx;
	  height: 122rpx;
	  line-height: 122rpx;
	  font-size: 36rpx;
	  border-radius: 60rpx;
	  border: 0;
	  margin: 0 auto;
	}
	
	.page-section {
	  margin-bottom: 20rpx;
	  border: 1px solid #eaeaea;
	  overflow: hidden;
	  border-radius: 50rpx;
	  height: 50rpx;
	  line-height: 50rpx;
	  padding: 24rpx 0;
		text-align: center;
		/* background: url(/statuc/images/xiajiantou.svg) right 25rpx center; */
		background-repeat: no-repeat;
		background-size: 40rpx 20rpx;
	}
	.row {
	  display: flex;
	  align-items: center;
	  /* padding: 0 30rpx; */
	}
	.row-title {
	  /* flex: 1; */
	  /* padding-top: 28rpx; */
	  /* padding-bottom: 28rpx; */
	  /* width: 294rpx; */
	  padding: 0 40rpx;
	  text-align: center;
	  border-right: 1px solid #eaeaea;
	  color: #959595;
	  font-size: 30rpx;
	}
	.row-extra {
	  flex: 1;
	  flex-basis: initial;
	  font-size: 36rpx;
	  color: #191919;
	  font-weight: bold;
	  text-align: center;
	}
	.row-arrow {
	  width: 25rpx;
	  height: 10rpx;
	  margin-right: 25rpx;
	}
	
	.bc_blue {
	  background-color: #49A9EE;
	}
	.bc_red {
	  background-color: #F04134;
	}
	.bc_yellow {
	  background-color: #FFBF00;
	}
	.bc_green {
	  background-color: #00A854;
	}
	.ft_blue {
	  color: #49A9EE;
	}
	.ft_red {
	  color: #F04134;
	}
	.ft_yellow {
	  color: #FFBF00;
	}
	.ft_green {
	  color: #00A854;
	}
	.form-row {
	  display: flex;
	  align-items: center;
	  padding: 0 30rpx;
	  height: 88rpx;
	  align-items: center;
	}
	.form-row-label {
	  width: 180rpx;
	  font-size: 34rpx;
	  margin-right: 10rpx;
	  text-align: left;
	  color: #191919;
	}
	.form-row-content {
	  flex: 1;
	  font-size: 34rpx;
	}
	.form-line {
	  height: 1px;
	  background-color: #ddd;
	  margin-left: 30rpx;
	}
	
	/* * {
	  color: #191919;
	} */
	
	.height20 {
	  height: 20rpx;
		border: 0;
	}
	
	.height25 {
	  height: 25rpx;
	}
	
	.height40 {
	  height: 40rpx;
	}
	.height96 {
	  height: 96rpx;
	}
	.height126 {
	  height: 126rpx;
	}
	.w{
	  width: 695rpx;
	  background: white;
	  padding:0 27.5rpx;
	}
	.myI{
	  width: 690rpx;
	  padding: 0 30rpx;
	}
	.l-empty {
	  width: 377rpx;
	  text-align: center;
	  margin: 0 auto;
	  margin-top: 200rpx;
	}
	.l-empty .imgBox {
	  width: 377rpx;
	  height: 218rpx;
	  margin-bottom: 54rpx;
	}
	.l-empty .imgBox image{
		width: 377rpx;
		height: 218rpx;
	}
	.l-empty .text {
	  font-size: 28rpx;
	  color: #434343;
	}
	.l-btnBox {
	  box-sizing: border-box;
	}
	.l-btn {
	  background: #369049;
	  background: -webkit-linear-gradient(left, #369049, #369049);
	  background: -o-linear-gradient(right, #369049, #369049);
	  background: -moz-linear-gradient(right, #369049, #369049);
	  background: linear-gradient(to right, #369049, #369049);
	  color: #ffffff;
	  width: 580rpx;
	  height: 70rpx;
	  line-height: 70rpx;
	  font-size: 28rpx;
	  border-radius: 25rpx;
	  border: 0;
	  margin: 0 auto;
	}
	
	.fixedBox {
		position: fixed;
		top: 0;
		left: 0;
		width: 100%;
		height: 100%;
		background: #000000;
		opacity: 0.6;
		z-index: 8;
	}
</style>
